<%@ page language="java" import="java.util.*,com.bean.*,com.dao.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>存入管理</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <form action="bank/savee.jsp">
		<table  width="100%" cellpadding="15px" cellspacing="0px" frame="box" style="border-collapse:collapse" bordercolor="#CCCCCC">
			<tr>
				<td colspan="2">
					存入管理<hr/>
				</td>
			</tr>
			<tr>
				<td width="25%">
					选择卡号：
				</td>
				<td>
					<select name="cardno" style="width:170px;"/>
					<%
						AccountDao dao = new AccountDao();
						List<AccountBean> banks = dao.selectAll();
						for(AccountBean bean :banks){
							out.println("<option value='"+bean.getNo()+"'>"+bean.getNo()+"</option>");
						}
					 %>
				</td>
			</tr>
			<tr>
				<td>
					存入时间：
				</td>
				<td>
					<input type="text" name="tdate" style="width:170px;"/>
				</td>
			</tr>
			<tr>
				<td>
					存入金额：
				</td>
				<td>
					<input type="text" name="money" style="width:170px;" />
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="submit" />
					<input type="reset" />
				</td>
			</tr>
		</table>
	</form>
  </body>
</html>
